from django.db import models

# 子类 可以继承父类的属性 字段
# 子类可以继承多个父类的属性和方法 详细查看 https://doc.bccnsoft.com/docs/django-docs-3.2-zh-hans/topics/db/models.html#meta-inheritance
from .father import Father


class Son(Father):
    age = models.IntegerField(max_length=11)
    desc = models.CharField(max_length=255, default='0', null=True)

    # 集成父类的Meta
    class Meta(Father.Meta):
        db_table = 'apis_sons'
